package com.ytjj.qmyx.mall.model;

import java.io.Serializable;
import java.util.Date;

/**
 * 开团表
 */
public class GroupBuyInfo implements Serializable {
    /**
     * 开团表
     *
     * @mbg.generated
     */
    private Integer id;

    /**
     * 开团人id
     *
     * @mbg.generated
     */
    private Integer userId;

    /**
     * 开团产品id
     *
     * @mbg.generated
     */
    private Integer productId;

    /**
     * 基础团配置信息表id
     *
     * @mbg.generated
     */
    private Integer groupId;

    /**
     * 开团日期
     *
     * @mbg.generated
     */
    private Date createTime;

    /**
     * 团筹集截至日期
     *
     * @mbg.generated
     */
    private Date endTime;

    /**
     * 拼团结果0-拼团中 1-成团 2-失败
     *
     * @mbg.generated
     */
    private Byte finalResult;

    /**
     * 修改日期
     *
     * @mbg.generated
     */
    private Date updateTime;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public Integer getGroupId() {
        return groupId;
    }

    public void setGroupId(Integer groupId) {
        this.groupId = groupId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Byte getFinalResult() {
        return finalResult;
    }

    public void setFinalResult(Byte finalResult) {
        this.finalResult = finalResult;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userId=").append(userId);
        sb.append(", productId=").append(productId);
        sb.append(", groupId=").append(groupId);
        sb.append(", createTime=").append(createTime);
        sb.append(", endTime=").append(endTime);
        sb.append(", finalResult=").append(finalResult);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}